package com.zero.core;

import com.zero.xmodel.JdbcConfigPO;
import com.zero.xmodel.PackagePO;
import com.zero.xmodel.definition.DaoDefinition;
import com.zero.xmodel.definition.EntityDefinition;
import freemarker.template.Template;

import java.util.List;
import java.util.Map;

/**
 * 容器
 *
 * @author wuxi
 * @date 2020-07-27
 */
public class ZeroContext {

    private JdbcConfigPO jdbcConfigPO;

    private PackagePO packagePO;

    private List<String> tableNames;

    private String preTable;

    private String filePath;

    private Map<String, DaoDefinition> daoMap;

    private Map<String, EntityDefinition> entityMap;

    private Map<String, Template> freemarkerTemplateMap;

    private String separator;

    private String projectPath;

    public JdbcConfigPO getJdbcConfigPO() {
        return jdbcConfigPO;
    }

    public void setJdbcConfigPO(JdbcConfigPO jdbcConfigPO) {
        this.jdbcConfigPO = jdbcConfigPO;
    }

    public PackagePO getPackagePO() {
        return packagePO;
    }

    public void setPackagePO(PackagePO packagePO) {
        this.packagePO = packagePO;
    }

    public List<String> getTableNames() {
        return tableNames;
    }

    public void setTableNames(List<String> tableNames) {
        this.tableNames = tableNames;
    }

    public String getPreTable() {
        return preTable;
    }

    public void setPreTable(String preTable) {
        this.preTable = preTable;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Map<String, DaoDefinition> getDaoMap() {
        return daoMap;
    }

    public void setDaoMap(Map<String, DaoDefinition> daoMap) {
        this.daoMap = daoMap;
    }

    public Map<String, EntityDefinition> getEntityMap() {
        return entityMap;
    }

    public void setEntityMap(Map<String, EntityDefinition> entityMap) {
        this.entityMap = entityMap;
    }

    public Map<String, Template> getFreemarkerTemplateMap() {
        return freemarkerTemplateMap;
    }

    public void setFreemarkerTemplateMap(Map<String, Template> freemarkerTemplateMap) {
        this.freemarkerTemplateMap = freemarkerTemplateMap;
    }

    public String getSeparator() {
        return separator;
    }

    public void setSeparator(String separator) {
        this.separator = separator;
    }

    public String getProjectPath() {
        return projectPath;
    }

    public void setProjectPath(String projectPath) {
        this.projectPath = projectPath;
    }
}